extern "C" {
#include "iMyApi.h"
}

#include "myApi.h"

int add(int a, int b) {
    CMyObject obj;
    int c = obj.add(a, b);
    auto d = new int;
    return c;
}